<template>
    <el-table class="title" stripe :data="tableData" height="400" @row-click="DoProblem()" style="width: 100%">
      <el-table-column prop="date" label="状态"  />
      <el-table-column prop="name" label="题目"  />
      <el-table-column prop="address" label="通过率" />
      <el-table-column prop="name" label="难度"  />
    </el-table>
  </template>
  
  <script lang="ts" setup>
  import { onMounted } from 'vue';
  import router from '@/router';
  import axios from 'axios';
  
  const tableData = [
    {
      date: '2016-05-03',
      name: 'Tom',
      address: 'No. 189, Grove St, Los Angeles',
    },
    {
      date: '2016-05-02',
      name: 'Tom',
      address: 'No. 189, Grove St, Los Angeles',
    },
    {
      date: '2016-05-04',
      name: 'Tom',
      address: 'No. 189, Grove St, Los Angeles',
    },
    {
      date: '2016-05-01',
      name: 'Tom',
      address: 'No. 189, Grove St, Los Angeles',
    },
    {
      date: '2016-05-08',
      name: 'Tom',
      address: 'No. 189, Grove St, Los Angeles',
    },
    {
      date: '2016-05-06',
      name: 'Tom',
      address: 'No. 189, Grove St, Los Angeles',
    },
    {
      date: '2016-05-07',
      name: 'Tom',
      address: 'No. 189, Grove St, Los Angeles',
    },
  ]
  const DoProblem=()=>{
    console.info(666)
    router.push('/problem')
  }
  </script>

  <style  >    
     
  </style>